<?php


namespace App\Http\Controllers\Api\v1;


use App\common;
use App\Http\Controllers\Controller;
use App\Utils\Lib\RankLib\MakeRankHandler;
use App\Utils\Lib\RankLib\RankSelection;
use Illuminate\Http\Request;

class RankController extends Controller
{
    public function RankAction(Request $request)
    {
        $type = $request->get('type');
        $res = RankSelection::RankSelection($type);
        $handle = (new MakeRankHandler($res))->MakeRankInterface();
        return common::success($handle,200,'成功');
    }

}
